//
//  XLTempController.swift
//  SinaWeibo
//
//  Created by 李凯 on 16/8/31.
//  Copyright © 2016年 kevin. All rights reserved.
//

import UIKit

class XLTempController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        view.backgroundColor = UIColor.white
        
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: nil, title: "push", target: self, action: #selector(push))
       // self.navigationItem.leftBarButtonItem = UIBarButtonItem(imgName: "navigationbar_back_withtext", title: "back", target: self, action: #selector(pop))
    }
    
    func push() {
        let vc = XLTempController()
        self.navigationController?.pushViewController(vc, animated: true)
    }
    
    //func pop() {
       // self.navigationController?.popViewController(animated: true)
   // }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
